package org.goyo.main.domain.entity.system;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Index;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

@Entity
public class SysLog implements Serializable {


  private static final long serialVersionUID = 1568459735379787031L;
  
  @Id
  @GenericGenerator(name = "generator", strategy = "org.hibernate.id.UUIDGenerator")
  @GeneratedValue(generator = "generator")
  private String uuid;
  
  @Column
  private String userName;
  
  @Column
  @Index(name="syslog_userid_index") 
  private String userId;
  
  @Column
  private String url;
  
  @Column(name = "parameter",columnDefinition = "TEXT",nullable = true)
  private String parameter;
  
  @Column
  private String ip;
  
  @Column
  private String methodsNote;
  
  @Column
  private Date  createTime;
  
  @Column
  private String logType;
  
  @Column(name = "error_msg",columnDefinition = "TEXT",nullable = true)
  private String errorMsg;

  public String getUuid() {
    return uuid;
  }

  public void setUuid(String uuid) {
    this.uuid = uuid;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserId() {
    return userId;
  }

  public void setUserId(String userId) {
    this.userId = userId;
  }

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getParameter() {
    return parameter;
  }

  public void setParameter(String parameter) {
    this.parameter = parameter;
  }

  public String getIp() {
    return ip;
  }

  public void setIp(String ip) {
    this.ip = ip;
  }

  public String getMethodsNote() {
    return methodsNote;
  }

  public void setMethodsNote(String methodsNote) {
    this.methodsNote = methodsNote;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getLogType() {
    return logType;
  }

  public void setLogType(String logType) {
    this.logType = logType;
  }

  public String getErrorMsg() {
    return errorMsg;
  }

  public void setErrorMsg(String errorMsg) {
    this.errorMsg = errorMsg;
  }
  
  
  
  
  
}
